import requests

res = requests.get("http://www.baidu.com")
print(res.text, res.content, res.encoding)
